# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-modern-perl
_pkgname=Modern-Perl
pkgver=1.20200211
pkgrel=6
pkgdesc='Enable all of the features of Modern Perl with one command.'
arch=('any')
url='https://metacpan.org/release/Modern-Perl'
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=(!emptydirs)
source=("http://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/$_pkgname-$pkgver.tar.gz")
sha512sums=('eb647c1b617ca517dc09a2de7395de3aca19b13e7089214127f86257544e790b5b79d439d0896be88c018f2ece47ca2b853168b65d676c4af034dbcc815619be')

build() {
  cd "$_pkgname-$pkgver"

  perl Makefile.PL installdirs=vendor destdir="$pkgdir"
}

package() {
  cd "$_pkgname-$pkgver"

  make install

  find "$pkgdir" -name perllocal.pod -delete
  find "$pkgdir" -name .packlist -delete
}

